跳到主要内容

指针事件(PointerEvent)

表示一个指针交互事件(Pointer Interaction Event),包含位置与指针 ID。

字段(Fields)

position

指针在本地坐标(local coordinates)中的位置。

id

指针唯一标识(unique identifier)。

构造器(Constructors)

new

方法(Methods)

hit

将事件标记为已处理。若 isTranslucenttrue,事件可继续穿透半透明命中目标传播。